﻿@{
    Layout = null;
}
@using Utility;
<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="Users/Myloglist" method="post">
        <div class="bjui-searchBar">
            <label>关键字：</label><input type="text" id="SearchKeyWords" value="@ViewBag.SearchKeyWords" name="SearchKeyWords" class="form-control" size="15" placeholder="">&nbsp;
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <a class="btn btn-orange" href="javascript:;" data-toggle="reloadsearch" data-clear-query="true" data-icon="undo">清空查询</a>
        </div>
    </form>
</div>
<div class="bjui-pageContent tableContent">
    <table class="table table-bordered table-hover table-striped table-top" data-selected-multi="true">
        <thead>
            <tr>
                <th align="center" width="100"></th>
                <th align="center" width="200">操作时间</th>
                <th align="center" width="150">IP</th>
                <th align="center" width="100">操作</th>
                <th align="center">备注</th>
            </tr>
        </thead>
        <tbody>
            @if (ViewBag.Modellist != null)
            {
                int i = Int32.Parse(ViewBag.PageSize) * (Int32.Parse(ViewBag.PageCurrent) - 1) + 1;
                foreach (var item in ViewBag.Modellist)
                {
                    <tr data-id="@i">
                        <td align="center">@i</td>
                        <td align="center">@item.Createtime.ToString("yyyy-MM-dd HH:mm") </td>
                        <td align="center">@item.Log_ip</td>
                        @if (@item.Log_operation == 1)
                        {
                            <td align="center"><span class="label label-default">登录</span></td>
                        }
                        else if (@item.Log_operation == 2)
                        {
                            <td align="center"><span class="label label-default">登出</span></td>
                        }
                        else if (@item.Log_operation == 3)
                        {
                            <td align="center"><span class="label label-primary">新增</span></td>
                        }
                        else if (@item.Log_operation == 4)
                        {
                            <td align="center"><span class="label label-warning">修改</span></td>
                        }
                        else if (@item.Log_operation == 5)
                        {
                            <td align="center"><span class="label label-default">查询</span></td>
                        }
                        else if (@item.Log_operation == 6)
                        {
                            <td align="center"><span class="label label-danger">删除</span></td>
                        }
                        else if (@item.Log_operation == 7)
                        {
                            <td align="center"><span class="label label-success">上传</span></td>
                        }
                        else if (@item.Log_operation == 8)
                        {
                            <td align="center"><span class="label label-info">下载</span></td>
                        }
                        else if (@item.Log_operation == 9)
                        {
                            <td align="center"><span class="label label-info">审核</span></td>
                        }
                        else if (@item.Log_operation == 10)
                        {
                            <td align="center"><span class="label label-info">驳回</span></td>
                        }
                        <td align="left">@item.Log_remark</td>
                    </tr>
                    i++;
                }
            }

        </tbody>
    </table>
</div>
<div class="bjui-pageFooter">
    <div class="pages">
        <span>每页&nbsp;</span>
        <div class="selectPagesize">
            <select data-toggle="selectpicker" data-toggle-change="changepagesize">
                <option value="30">30</option>
                <option value="60">60</option>
                <option value="120">120</option>
                <option value="150">150</option>
            </select>
        </div>
        <span>&nbsp;条，共 @ViewBag.AllRecords 条</span>
    </div>
    <div class="pagination-box" data-toggle="pagination" data-total="@ViewBag.AllRecords" data-page-size="30" data-page-current="1">
    </div>
</div>
